from __future__ import generators
import os,sys,sets,random,logging
from pprint import pprint

try: from networkx.digraph import DiGraph
except ImportError:
	from networkx.classes.digraph import DiGraph
g = DiGraph()
g.add_node(11)
g.add_node(22)
g.add_edge(1,2,"c2p")
print g[1][2]

for  n in g.nodes_iter():
	print n


